﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System.Collections.Generic;

namespace com.guojin.mj.net.message.login
{
    public class LmNumList : Message
    {
        public static int TYPE = 7;
        public static int ID = 106;

        /***目前人数*/
        public  int nowPeople;
        /****总人数*/
        public int numPeople;
        /**联盟好友列表**/
        public List<LmNumber> LmNumberlist;
        public int LMid;
        public void decode(core.io.Input _in)
        {
            nowPeople = _in.readInt();
            numPeople = _in.readInt();
            int size = _in.readInt();
            if (size>0)
            {
                LmNumberlist = new List<LmNumber>();
                for (int i = 0; i < size; i++)
                {
                    LmNumber list = new LmNumber();
                    list.decode(_in);
                    LmNumberlist.Add(list);
                }
            }
            LMid= _in.readInt();
        }
        public void encode(Output _out)
        {

        }
        public int getMessageId()
        {
            return ID;
        }
        public int getMessageType()
        {
            return TYPE;
        }
        public string toString()
        {
            return "nowPeople"+nowPeople;
        }
    }
}
